import request from '@/utils/request'

// 查询tolType列表
export function listTolType(query) {
  return request({
    url: '/ticket/tolType/list',
    method: 'get',
    params: query
  })
}

// 查询tolType详细
export function getTolType(ticketTypeId) {
  return request({
    url: '/ticket/tolType/' + ticketTypeId,
    method: 'get'
  })
}

// 新增tolType
export function addTolType(data) {
  return request({
    url: '/ticket/tolType',
    method: 'post',
    data: data
  })
}

// 修改tolType
export function updateTolType(data) {
  return request({
    url: '/ticket/tolType',
    method: 'put',
    data: data
  })
}

// 删除tolType
export function delTolType(ticketTypeId) {
  return request({
    url: '/ticket/tolType/' + ticketTypeId,
    method: 'delete'
  })
}
